import request from '@/utils/request'

export function queryUser() {
  return request({
    url: 'api/users/queryUser',
    method: 'get'
  })
}

export function assignTask(data) {
  return request({
    url: 'api/taskMark/assign',
    method: 'post',
    data
  })
}

export function getImagesByTaskMarkId(data) {
  return request({
    url: 'api/image/queryAllImage?taskId=' + data,
    methods: 'get',
  })
}

export function getMerits(data) {
  return request({
    url: 'api/taskMark/merits',
    method: 'post',
    data
  })
}

export function getAllMerits(data) {
  return request({
    url: 'api/taskMark/getAllMerits',
    method: 'post',
    data
  })
}

export default { queryUser, assignTask, getImagesByTaskMarkId ,getMerits}
